FROM frolvlad/alpine-oraclejdk8:slim
RUN mkdir /tmp/data
VOLUME /tmp
VOLUME /tmp/data
COPY zk_config.properties /tmp
ENV ZK_CONFIG=/tmp/zk_config.properties
ENV JAVA_OPTS="-Xms256m -Xmx256m"
ADD ms-gateway-app-1.0.jar ms-gateway-app-1.0.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Duser.timezone=GMT+08","-jar","/ms-gateway-app-1.0.jar"]